﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace IM.Client
{
    /// <summary>
    /// 即时通信主界面
    /// </summary>
    public partial class MainWindow : Window
    {
        /// <summary>
        /// 登陆窗口
        /// </summary>
        private LoginWindow loginWindow;
        /// <summary>
        /// 登陆后显示的主窗体。
        /// </summary>
        //private IMMainControl mainIM;

        public MainWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 退出IM登陆。
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonClose_Click(object sender, RoutedEventArgs e)
        {
            //通过广播发送到服务器，服务器收到后，给所有的IM客户端广播消息。
            this.Close();
        }

        /// <summary>
        /// 鼠标左键按下的事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {

        }
    }
}
